package cn.jwelll.bxcstock.viewmodel.viewmodel

import android.databinding.BaseObservable
import cn.jwelll.bxcstock.viewmodel.itemmodel.ItemCarInPreviewModel

class CarInPreviewModel : BaseObservable() {
    var id = 0// Id ,
    var waybillCode = ""//运单号 ,
    var driverName = ""//司机名称 ,
    get()=if(field.isNullOrEmpty()&&carNum.isNullOrEmpty()) "暂无司机名称和车牌" else field

    var carNum = ""//车牌 ,
    //排队号 ,
    var qeueuNumber = ""
        get() = if (field.isNullOrEmpty()) "暂无排号信息" else field
    //装车点 ,
    var loadingPoint = ""
        get() = if (field.isNullOrEmpty()) "暂无装车点信息" else field
    var weight = 0.0//总重量 ,
    var materials = arrayListOf<ItemCarInPreviewModel>()//物料列表

}